<?php
jimport('joomla.application.component.controller');

class bgController extends JController {
     public function __construct(){
        parent::__construct();
        $this->model = $this->getModel();
    }
      
    /* remove mobj items */
    public function remove(){
    	$cid = JRequest::getVar('cid');
                    
        $this->model->remove($cid);
        $this->setRedirect('index.php?option=com_msmobj'); 
    }
}